package org.redemptionhost.web.pages;

import java.io.Serializable;

import org.apache.wicket.markup.html.basic.Label;
import org.redemptionhost.web.panels.AdminNavigationPanel;
import org.redemptionhost.web.panels.AdminWelcomePanel;

public class AdminPage extends SecuredPage implements Serializable {
	private static final long serialVersionUID = 1L;
	
	public AdminPage() {
		this("");
	}
	
	public AdminPage(String disabledClass) {
		super();
		
		headerLabel = new Label("pageHeader", "Administration Page");
		add(headerLabel);
		
		add(navigationPanelContainer);
		navigationPanel = new AdminNavigationPanel(disabledClass);
		navigationPanelContainer.addOrReplace(navigationPanel);
		
		add(mainPanelContainer);
		mainPanel = new AdminWelcomePanel();
		mainPanelContainer.addOrReplace(mainPanel);
	}


}
